/* 将localstorage 里的token 作为 全局使用的store */

import { createSlice } from '@reduxjs/toolkit'

const useridSlice = createSlice({
  name: 'userid',
  initialState: {
    value: null,
  },
  reducers: {
    getid: (state, action) => {
      state.value = action.payload
    },
  },
})
export { useridSlice }
